Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Compressing or Decompressing During Interrupt Time

If a compressor or decompressor component implements the DataCodecBeginInterruptSafe and DataCodecEndInterruptSafe functions, your application or other software can perform compression or decompression operations during interrupt time. You do this as follows:

  1. Before performing the compression or decompression operation, call the DataCodecBeginInterruptSafe function.In the call, pass the maximum size of a data block to be compressed or decompressed in the maxSrcSize parameter.
  2. If the call fails, do not perform operations that are not safe during interrupt time.
  3. When the compression or decompression operation is complete, call the DataCodecEndInterruptSafe function to release resources used to make the operation safe at interrupt time.

© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |